package cn.shengongying.enums;

/**
 * author: RXK
 * date: 2022/1/5 星期三
 * desc:
 */
public enum ResponseCodeEnum {
    fail(-1,"失败"),
    success(2000,"成功"),
    position_vacant_cant_invoice(20001,"职位招聘中,无法申请开票"),
    position_vacant_cant_refund(20002,"职位招聘中,无法申请退款"),
    all_refund_cant_invoice(20003,"订单全额退款,不能开票!"),
    param_exception(4000,"参数错误"),
    verify_code_expire_exception(40001,"验证码失效,请重新获取"),
    login_fail_exception(40002,"登录无效,重新登录"),
    token_fail_exception(40003,"无效token"),
    user_no_worker_exception(40004,"用户没有发布相应的简历"),
    account_not_found(40005,"用户不存在"),
    account_not_allowed(40006,"用户被禁用"),
    wrong_password(40007, "密码错误"),
    server_exception(5000,"流量火爆,请稍后再试"),
    ;


    private final Integer code;

    private String msg;

    ResponseCodeEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }


    public Integer getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }

    public ResponseCodeEnum setMsg(String msg) {
        this.msg = msg;
        return this;
    }
}
